﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using DataAccessTier;
using DTO;

namespace BusinessLogicTier
{
    public class ChiTietHangCCBUG
    {
        ChiTietHangCCDAO objcthcc = new ChiTietHangCCDAO();
        public DataTable GetCTHCC(string mancc)
        {
            return objcthcc.GetAllHangCC(mancc);
        }

        public DataTable GetMaHang()
        {
            return objcthcc.GetAllMaHang();
        }

        public DataSet GetTenHang(string mahang)
        {
            return objcthcc.GetTenHangCCTheoMa(mahang);
        }

        public DataTable RandomMaKhachHang()
        {
            return objcthcc.RandomMaKhachHang();
        }

        public bool Insert(string macthcc, string mancc,string mahang, string tenhangcc)
        {
            return objcthcc.Insert(macthcc, mancc, mahang, tenhangcc);
        }

        public bool Delete(string macthcc)
        {
            return objcthcc.Delete(macthcc);
        }

        public bool kiemtratontai(string macthcc)
        {
            return objcthcc.kiemtratontai(macthcc);
        }
    }
}
